package work.work50;

/**
 * 动物父类
 */
public class Animal {
    /**
     * 颜色
     */
    private String color;
    /**
     * 年龄
     */
    private int age;
    /**
     * 名字
     */
    private String name;
    public Animal(){};
    public Animal(String color,String name,int age){
        this.color=color;
        this.name=name;
        this.age=age;
    }
    public void introduction(String color,String name,int age){
        System.out.println("颜色："+this.getColor() +"，名字："+ this.getName() + "，年龄：" + this.getName());
    }
    /**
     * 叫方法
     */
    public void  shout(){
        System.out.println("叫");
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
